package com.ttj.domain.oracle.gen;

import java.io.Serializable;

public class SuperSysconfPrizeCategory implements Serializable {
    private Integer id;

    /**
     * 总类
     */
    private String oneCategory;

    /**
     * 细类
     */
    private String detailCategory;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 总类
     */
    public String getOneCategory() {
        return oneCategory;
    }

    /**
     * 总类
     */
    public void setOneCategory(String oneCategory) {
        this.oneCategory = oneCategory;
    }

    /**
     * 细类
     */
    public String getDetailCategory() {
        return detailCategory;
    }

    /**
     * 细类
     */
    public void setDetailCategory(String detailCategory) {
        this.detailCategory = detailCategory;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", oneCategory=").append(oneCategory);
        sb.append(", detailCategory=").append(detailCategory);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SuperSysconfPrizeCategory other = (SuperSysconfPrizeCategory) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getOneCategory() == null ? other.getOneCategory() == null : this.getOneCategory().equals(other.getOneCategory()))
            && (this.getDetailCategory() == null ? other.getDetailCategory() == null : this.getDetailCategory().equals(other.getDetailCategory()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getOneCategory() == null) ? 0 : getOneCategory().hashCode());
        result = prime * result + ((getDetailCategory() == null) ? 0 : getDetailCategory().hashCode());
        return result;
    }
}